// =================================================================
// File: close.cpp
// Desc: Contains function for closing an open file
// =================================================================

// =================================================================
// INCLUDES
// =================================================================

#include "FSManager.h"
#include "commands.h"

using namespace std;

// =================================================================
// FUNCTIONS
// =================================================================

// =================================================================
// Name: close
// Desc: Closes an open file specified by the file descriptor
// Args: int fd - the file descriptor to close
//       FSManager* fsm - pointer to FSManager object in use
// =================================================================
void close(int fd, FSManager *fsm){

    fsm->RemoveOpenFile(fd);
	
}
